package plugins.lxfa.lijiangwanchang
{
	import flash.events.Event;
	
	import memory.MemoryRecovery;
	
	import mx.core.UIComponent;
	
	import plugins.lxfa.animatePlayer.AnimatePlayer;
	
	import view.player.SwfPlayer;
	
	public class LiJiangWanChangModuleBase extends UIComponent
	{
		private var swf:SwfPlayer;
		public function LiJiangWanChangModuleBase()
		{
			init();
		}
		private function init():void
		{
			swf=new SwfPlayer("swf/buyu.swf",900,480);
			swf.addEventListener(Event.COMPLETE,complete);
		}
		private function complete(e:Event):void
		{
			this.addChild(swf);
			AnimatePlayer.getInstance().showAnimate(23);
		}
		public function dispose():void
		{
			MemoryRecovery.getInstance().gcFun(swf,Event.COMPLETE,complete);
			AnimatePlayer.getInstance().removeAnimate();
			if(swf!=null)
			{
				swf.dispose();
				if(swf.parent!=null)
				{
					swf.parent.removeChild(swf);
				}
				swf=null;
			}
		}
	}
}